/********************************************************************************
Paper: The Impact of Welfare on Intergroup Relations
Author: Akshay Dixit

This master .do file can be used to reproduce all results in the paper as well as 
the supplementary materials.

Before running any code, please review the README carefully. Ensure you have the
necessary commands installed. These include:
	ssc install outreg2
	ssc install coefplot
	ssc install schemepack
	ssc install distinct
	ssc install egenmore
	ssc install elabel
	net install profileplot, from("https://stats.oarc.ucla.edu/stat/stata/ado/analysis")
********************************************************************************/

clear all
set more off
set scheme white_tableau

*** THIS IS THE INPUT THAT MUST BE CHANGED SPECIFIC TO THE USER/ANALYSIS ***
gl identity ".../dixit_replication"

gl dof "$identity/do" 
gl analysis "$identity/analysis"

*** Run do files in the order below ***

	// Analysis of REDS 1999 data 
*do "$dof/1_reds" 

	// Analysis of IHDS 2012 data
*do "$dof/2_ihds" 

	// Analysis of CPHS data
*do "$dof/3_cphs_import"
*do "$dof/4_cphs_merge"
*do "$dof/5_cphs_clean"
*do "$dof/6_cphs_descriptive"
*do "$dof/7_cphs_regression"
*do "$dof/8_cphs_bordering_districts"

	// Analysis of Census data
*do "$dof/9_census_balance_check"

	// Analysis of original survey data
do "$dof/10_survey_village_clean"
do "$dof/11_survey_household_clean"
do "$dof/12_survey_descriptive"
do "$dof/13_survey_analysis"
do "$dof/14_survey_robustness_checks"



